package com.ling.luo.demo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;

/**
 * @Description 用于验证是否搭建成功项目基础环境
 * @author 罗厚检
 * @since 2020-09-24
 */
@Controller
public class DemoController {

    @GetMapping("/demo")
    @ResponseBody
    public String demo(){
        return "demo";
    }

    @GetMapping("/test")
    public String test() {
        return "user/show";
    }

}
